package com.ssr.ld.bean;

import java.io.Serializable;
import java.util.Date;

public class BaseBean implements Serializable{

	private static final long serialVersionUID = 1L;

	private Long id;

	private Date createDate;

	private Date modifyDate;

	private Integer limit = 50;
	
	private Integer page = 1;
	
	private String beginTime;
	
	private String endTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public Integer getEndNum() {
		if (page == null)
			return null;
		return this.page * this.limit;
	}

	public Integer getBeginNum() {
		if (page == null)
			return null;
		return (this.page - 1) * this.limit;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public String getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

}
